function saveLength(length) {
    window.localStorage.setItem("lenght", length.toString());
}

function getLength() {
    var length = window.localStorage.getItem("lenght");
    if (length != null && length != "") {
        return parseInt(length);
    } else {
        return 400;
    }
}

function saveWidth(width) {
    window.localStorage.setItem("width", width.toString());
}

function getWidth() {
    var width = window.localStorage.getItem("width");
    if (width != null && width != "") {
        return parseInt(width);
    } else {
        return 400;
    }
}

function saveHeight(height) {
    window.localStorage.setItem("height", height.toString());
}

function getHeight() {
    var height = window.localStorage.getItem("height");
    if (height != null && height != "") {
        return parseInt(height);
    } else {
        return 250;
    }
}

function saveLengthWidthHeight1(length) {
    saveLength(length);
}
function saveLengthWidthHeight2(width) {
    saveWidth(width);
}
function saveLengthWidthHeight3(height) {
    saveHeight(height);
}